package com.oracle.zebrafreelytraveling.data.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.amap.api.maps.model.LatLng;
import com.amap.api.maps.model.Marker;

import java.util.List;
import java.util.Map;

/**
 * Created by yydcnjjw on 2017/8/8.
 * 导航规划图途径点
 */

public class NaviRouteWay implements Parcelable{

    private List<Map<LatLng, Boolean>> routeWayList;
    private LatLng from;
    private LatLng to;

    public List<Map<LatLng, Boolean>> getRouteWayList() {
        return routeWayList;
    }

    public void setRouteWayList(List<Map<LatLng, Boolean>> routeWayList) {
        this.routeWayList = routeWayList;
    }

    public LatLng getFrom() {
        return from;
    }

    public void setFrom(LatLng from) {
        this.from = from;
    }

    public LatLng getTo() {
        return to;
    }

    public void setTo(LatLng to) {
        this.to = to;
    }

    protected NaviRouteWay(Parcel in) {
        from = in.readParcelable(LatLng.class.getClassLoader());
        to = in.readParcelable(LatLng.class.getClassLoader());
    }

    public static final Creator<NaviRouteWay> CREATOR = new Creator<NaviRouteWay>() {
        @Override
        public NaviRouteWay createFromParcel(Parcel in) {
            return new NaviRouteWay(in);
        }

        @Override
        public NaviRouteWay[] newArray(int size) {
            return new NaviRouteWay[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(from, flags);
        dest.writeParcelable(to, flags);
    }
}
